package com.weibo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {

//    userId int(11) NOT NULL
//    username varchar(50) NOT NULL
//    email varchar(100) NOT NULL
//    passwordHash varchar(255) NOT NULL
//    createdTime timestamp NOT NULL
    private int userId;
    private String username;
    private String nickname;
    private String avatarUrl;
    private String email;
    private String passwordHash;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
}
